#include <QPainter>

#include <UIKit/UIFont.h>

#include "CustomCell.h"

CustomCell::CustomCell (UITableView *tableView) 
    : UITableViewCell(tableView)
{
}

CustomCell::~CustomCell() {
}

void CustomCell::drawRect (QPainter *painter, const QRect& rect) {
    painter->save();

    painter->setBrush(Qt::red);
    painter->drawRoundedRect(rect, 12, 12);

    painter->setPen(textColor());
    painter->setFont(UIFontNormalBold(painter->font()));
    painter->drawText(rect, Qt::AlignCenter, text());

    painter->restore();
}

